<br /><br />

<?php  
$cateogries= $this->cateogries; ?>
<?php if($cateogries==null):?>
<p> Nothing Found!</p>

<?php else :?>

<table  border="1">
<tr><td colspan=6>Total of Categories:<span class="total"> <?php echo $this->total; ?></span></td></tr>
<tr><th>Id</th><th>Category</th><th># items</th></tr>
<?php 
	foreach ($cateogries as $category):
?>
	<tr><td width="30"><?php echo $category["id"]?></td><td width="410px"><?php echo $category["name"]?></td><td width="70px"><?php echo $category["num_items"]?></td>
	<?php if($category["num_items"]>0):?>
	<td width="150px"><form action="/ItemManager/getitems" method="post">
			<input type="hidden"  name="path" value="<?php echo $category["items_uri"]?>" />
			<input type="submit" value="View this Category" />
	
	</form></td>
	<?php endif;?></tr>

<?php 
endforeach;?>
</table>
<?php endif;?>